package thread.sync;
/*
 * VIP 고갱르 생성하는 Thread
 * VIP 고객 ID : VIPCustomer정수 -> 정수는 MakeSequenceNumber를 이용해 생성
 * 
 */

public class CreateVIPCutomerThread extends Thread{
	private MakeSequenceNumber msn;
	public CreateVIPCutomerThread(MakeSequenceNumber msn){
		this.msn = msn;
	}
	public void run(){
		//VIP 고객을 생성
		for(int i =0; i<10; i++){
			int num = msn.getNextNumber();
			System.out.println("생성된 VIP 고객 ID : VIP Customer - "+num);
		}
	}
}
